<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular-1.3.0.js"></script>
    <title></title>
</head>
<body ng-app>

    <div ng-controller="IfCtrl">
        <ul>
            <li ng-if="condition=='hello'">if 1</li>
            <li ng-if="condition==2">if 2</li>

            <li ng-show="condition=='hello'">show 1</li>
            <li ng-show="condition==2">show 2</li>
        </ul>

        <button ng-click="change()">change</button>
    </div>

<script>

    function IfCtrl($scope) {
        $scope.condition = 'hello';

        $scope.change = function() {
            $scope.condition = 2;
        };
    }
</script>
</body>
</html>